import request from '@/utils/request'
export function fetchList(params) {
  return request({
    url:'/depot/all',
    method:'get',
    params:params
  })
}
export function createDepository(data) {
  return request({
    url:'/depot/add',
    method:'post',
    data:data
  })
}

export function deleteDepository(id) {
  return request({
    url:'/depot/delete/'+id,
    method:'get',
  })
}

// export function getDepository(id) {
//   return request({
//     url:'/depot/'+id,
//     method:'get',
//   })
// }

export function updateDepository(id,data) {
  return request({
    url:'/depot/update/'+id,
    method:'post',
    data:data
  })
}
